package cgb2202.recruitment01.entity;

import java.util.Objects;

public class Com implements CurrentUser {
    private Integer id ;
    private String email;
    private String password;

    @Override
    public String toString() {
        return "Com{" +
                "id=" + id +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Com com = (Com) o;
        return Objects.equals(id, com.id) &&
                Objects.equals(email, com.email) &&
                Objects.equals(password, com.password);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, email, password);
    }

    @Override
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
